# -*- coding: utf-8 -*-
# @Time    : 2021/1/2 下午3:17
# @Author  : tgy


def test01():
    ...
    name = 'zhaNgsan'
    print(name[6::-1])
    name1 = '   xxx   '
    print(name1.strip())
    join_str = "#".join([name, name1.strip()])
    print(join_str)
    print(name.find('k'))
    # print(name.index('k'))
    print(name.count('k'))

    print('k' in name)

    print(name.center(20, ' '))
    print(name.ljust(20, '#'))
    print(name.rjust(20, '~'))
    print(name.zfill(20))
    print(name.capitalize())
    # 大小写交换
    print(name.swapcase())


if __name__ == '__main__':
    ...
    test01()
